<filerename> : Rename File
This command renames specified file.
Syntax:
<filerename>("FileSource", "NewName", Reserved1, Reserved2)
FileSource
Full path to the file to copy (e.g., "c:\mydocuments\original.doc").
Can be a static text or variable containing text.
NewName
New name such as "backup.doc".
Can be a static text or variable containing text.
Reserved2
Must be 0.
Reserved2
Must be 0.
Example:
<#> This macro renames file you select to "_renamed.txt".
<#>
<cmds>
<var_oper>(vFile,"",SELECT_FILE,"Select File","", "0")
<if_str>("_vCanceled==1") <exitmacro>
<endif>
<filerename>("vFile","_renamed.txt",0,0)